package com.youlai.boot.system.converter;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.bo.BannerBO;
import com.youlai.boot.system.model.entity.Banner;
import com.youlai.boot.system.model.form.BannerForm;
import com.youlai.boot.system.model.vo.BannerPageVO;
import org.mapstruct.Mapper;

/**
 * 部门对象转换器
 *
 * @author haoxr
 * @since 2022/7/29
 */
@Mapper(componentModel = "spring")
public interface BannerConverter {
    BannerForm toForm(Banner entity);
    Page<BannerPageVO> toPageVo(Page<BannerBO> page);
    Banner toEntity(BannerForm BannerForm);

}